<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    *{
        margin: 0;
        padding: 0;
        font-size: 16px
    }
    .box1{
        width: 600px;
        height: 400px;
        border: 1px solid  red;
    }
    .box2{
        width: 550px;
        height: 37px;
        text-align: center;
        border: 1px solid #000000;
        overflow: hidden;
        padding: 23px 0 0 45px;
    }
    ul{
        overflow: hidden;
        
    }
    li{
        float: left;
        list-style: none;
        border-right: 1px solid #000000;
        padding:0 10px;
        cursor:pointer;
    }
    li:hover{
        color:#ffffff;
        display:none;
    }
    li span{
        display: none;
    }
    li:hover span{
        display: block;
    }
    </style>
</head>
<body>
    <div class="box1">
        <div class="box2">
            <ul>
                    <li>袁准</li>
                    <li>袁准</li>
                    <li>袁准</li>
                    <li>袁准</li>
                    <li>袁准</li>
                    <li>袁准</li>
            </ul>
        </div>
    </div>
    
</body>
</html>